<?php
print_r(explode(".", "afdfas.jpg"));
?>